Solid-state galvanic cell for monitoring chlorine partial pressure