First-principles calculations of Mg2X (X = Si, Ge, Sn) semiconductors with the calcium fluorite structure