Spatial light modulator based on the control of the wavefront curvature