Detection of macular function changes in early (AREDS 2) and intermediate (AREDS 3) age-related macular degeneration