Electronic coarse graining: Predictive atomistic modeling of condensed matter