magnesium period pain relief