The role of pre-hydrolysis on multistep sol-gel processes for enhancing the flame retardancy of cotton