Thermal stability, flame retardancy and mechanical properties of cotton fabrics treated with inorganic coatings synthesized through sol-gel processes