Text this: Spectroscopic approach to optimize the biogenic silver nanoparticles for photocatalytic removal of ternary dye mixture and ecotoxicological impact of treated wastewater