Continuous monitoring of electrolyte concentration using integrated photonic device