Ferromagnetism in IV main group element (C) and transition metal (Mn) doped MgO: A density functional perspective