Sol-gel synthesis and hybrid thin film deposition for innovative textile finishing. Study, characterization and environmental impact evaluation