Correlation of structure and function of the macula in patients with retinitis pigmentosa