Photorefractive materials and their applications