Enhanced photocatalytic and antibacterial activities of mechanosynthesized TiO2–Ag nanocomposite in wastewater treatment