A study of aqueous solutions of lanthanide ions by molecular dynamics simulation with ab initio effective pair potentials