Direct generation of optical vortices