Evaluation of a deep learning system for the joint automated detection of diabetic retinopathy and age-related macular degeneration