Optical absorption spectra and g factor of MgO: Mn 2+ explored by ab initio and semi empirical methods