Dynamic ultraviolet harmonic beam pattern control by programmable spatial wavefront modulation of near-infrared fundamental beam