High-pressure crystallization and properties of diamond from magnesium-based catalysts