Critical phenomena in the rotational spectra of H2X molecules