Molecular rotations in matter-wave interferometry