Characterization of ionic polymers : towards applications as soft sensors in medicine