Generalization of Nosé’s isothermal molecular dynamics: Necessary and sufficient conditions of dynamical simulations of statistical ensembles | Synapse