Determination of ionic concentration in microfluidics using electrical methods