Non empirical core polarization effects on the optical properties of Mg(I): II, bound-bound and bound-free one- and two-photon transitions up to the third ionization threshold