photorefractive device