Determination of chlorine in hydrochloric acid solutions