Ab initio (from electronic structure) calculation of complex processes in materials