Simulating the chelate effect and the molecular dynamics of transition metal ions