Postpulse alignment of molecules robust to thermal averaging