Flash and pattern electroretinogram changes with optic atrophy and glaucoma