First it is required that you make an electrochromic to your material either in a powdery or granular form or both. Subsequently, tests should be carried out on the ph where the chemical species can be formed that are removable or adsorbable.
In short, experimental optimization such as the Box-Wilson method. But beforehand, the optimization criterion (objective function) should be specified. Regards,