Measurement of contrast sensitivity function using pattern-reversal visual evoked responses