Electronic-structure calculations and molecular-dynamics simulations with linear system-size scaling.