Optimization in the Synthesis of Dual Ionic-Liquid-Functionalized Cellulosic Materials