magnesium for muscle function