Rapid amperometric determination of magnesium(II) ions