Use of ionic liquids in electrochemical sensors