Mg intercalation into Ti2C building block