Theoretical study of vibronic perturbations in magnesium carbide