Photorefractive gain enhancement in InP:Fe using band-edge resonance and temperature stabilization