Synthesis and characterization of a series of functionalized macrocycles containing oxygen and nitrogen heteroatoms and their metal complexes