Modelling tandem reactions involving cycloaddition extrusion electrocyclic ring opening and closure and sigmatropic rearrangement