Titanium anode for wastewater treatment