Contrast sensitivity function in evaluation of visual impairment due to retinitis pigmentosa