pH-dependent modulation of relaxivity and luminescence in macrocyclic gadolinium and europium complexes based on reversible intramolecular sulfonamide ligation