Synthesis of the bicyclic core of pyrrolizidine alkaloids