Quantification of Dye Degradation on Titanium Dioxide-Based Membranes