Competing dimerisation of some N,O-heterocyclics. Thermodynamic versus kinetic control of isomeric products