Automated Segmentation of Retinal Layers in Macular OCT Images of Patients with Retinitis Pigmentosa