Kinetic description of polyatomic gases with temperature-dependent specific heats