Adaptive interferometers using photorefractive crystals