A quantum-mechanics molecular-mechanics scheme for extended systems. (28th June 2016)