A multifaceted aggregation and toxicity assessment study of sol-gel-based TiO2 nanoparticles during textile wastewater treatment