Preparation of chlorine from hydrogen chloride