The effect of optical degradation on the contrast sensitivity function measured at the fovea and in the periphery