Synthesis of selected amides of mono- and bis (carboxypiperidino) alkanes