First principles calculation of inhomogeneous broadening in solid-state cw-EPR spectroscopy