Zaslat SMS: Analysis of the quasicontinuum method and its application