Alternative tandem cyclisation pathways in the reaction between imines and enones