On unsteady-state heat-and-mass transfer in polyatomic gases