Cobalt (II) and Manganese (II) complexes of monosubstituted square ligands: assessment of the electronic and magnetic properties of their polymers