Synthesis and use of isotopically labeled macrocyclic compounds