Fremgangsmåte for fremstilling av piperidinderivater