Kinetic modelling of the photochromism of dihydroindolizines