how does magnesium help constipation in humans