An adaptive finite element approach to atomic-scale mechanics—the quasicontinuum method