Control of the rotational motion of molecules