A new and simple method for the synthesis of highly functionalised pyrrolizidines, indolizidines and pyrroloazepines