Flexible conjugate adaptive optics with a refractive wavefront modulator