Coupling atomistic and continuous media models for electronic device simulation