Diagnosis and treatment of age-related macular degeneration