Electrooptic effect for cold neutrons in photorefractive materials