Investigating the electrochemical windows of ionic liquids