Molecular rotations studied by nuclear resonant scattering