Characterization of critical gel state of polyamides by viscoelastic, thermal, and IR measurements