Synthesis of epibatidine