Photocatalytic degradation pathway of methylene blue in water