Homogeneous and inhomogeneous broadening of the $^4A_2-^2T_1$ zero-phonon transition in MgO:Cr