Adaptive beam shaper based on a single liquid crystal cell