Ruthenium complex catalyzed N-heterocyclization. Syntheses of N-substituted piperidines, morpholines, and piperazines from amines and 1,5-diols