Near- and far-field wave shaping for optofluidic particle manipulation