Understanding the role of water during ionic liquid pretreatment of lignocellulose: co-solvent or anti-solvent?