Time-dependent generalization of the Nosé-Hoover thermostatting technique for molecular dynamics simulations