Simultaneous frequency conversion and beam shaping for optical-tweezers applications