Synthesis of cyclic analogues of hexamethylenebis(3-pyridine)amide (HMBPA) in a one-pot process