Pharmaceutical magnesium preparations