Synthesis of 2,5-bis(piperidinomethyl)piperidine and 1,5-bis(aminomethyl)-3-azabicyclo[3.2.1]octanones