Intramolecular condensation reactions