Efficient preconditioning of the electronic structure problem in large scale ab initio molecular dynamics simulations