Hybrid atomistic-coarse-grained treatment of multiscale processes in heterogeneous materials: a self-consistent-field approach.