Sensing of inorganic ions in microfluidic devices