Rotating microparticles and bacteria with optical propelling beams