The rotational structure of three-photon resonances of polyatomic molecules