Polymorphism and phase transformations of a cocrystal of nicotinamide and pimelic acid