Synthesis of functionalised azabicycles via a regiospecific intramolecular aldol reaction