best time to take a magnesium supplement