magnesium before bed