Transformation of 4-nitroalkane-1,7-diones into pyrrolizidines