How is macular degeneration diagnosed?