Tandem radical cyclisations leading to indolizidinones and pyrrolizidinones