Analytical control during the photocatalytic treatment of 3,6-dichloro-2-methoxybenzoic acid in homogeneous and heterogeneous systems