Nucleophilic attack on 2-(4-oxoalkyl)-2-imidazolines: a novel route to tetrahydropyridines and piperidines