Polydentate ligand construction: intramolecular condensation reactions in the synthesis of imine-containing ligands