Hydrodynamic effects in the optically induced reorientation of nematic liquid crystals