An efficient preconditioning scheme for plane-wave-based electronic structure calculations