A first-principles theoretical approach to heterogeneous nanocatalysis.