In situ synthesis of TiC/Mg composites in molten magnesium