A variety of metal–organic and supramolecular networks constructed from a new flexible multifunctional building block bearing picolinate and terephthalate functionalities: hydrothermal self-assembly, structural features, magnetic and luminescent properties