Glycolytic and oxidative metabolism in relation to retinal function