Synthesis, crystal structure, and magnetic properties of two-dimensional divalent metal glutarate/dipyridylamine coordination polymers, with a single crystal-to-single crystal transformation in the copper derivative