Reduction of the space-charge field in photorefractive crystals