Understanding cyclobutenone rearrangements: a study under flow