Physical state of cellulose in BmimCl: dependence of molar mass on viscoelasticity and sol-gel transition