Simulations of minerals using density-functional theory based on atomic orbitals for linear scaling