Optical chloride sensor based on dimer-monomer equilibrium of indium(III) octaethylporphyrin in polymeric film.