The use of molecular dynamics for the thermodynamic properties of simple and transition metals