Silver(I) coordination polymer and nine-coordinated cadmium(II) complex with dimethyl pyridine-2,6-dicarboxylate supported by solid state and electrochemical studies