A DFT/TDDFT study on the mechanisms of direct and indirect photodegradation of tetrabromobisphenol A in water