magnesium sleep weight loss