On the pathogenesis of retinitis pigmentosa