In situ synthesis and characterization of a series of new pyridyl containing complexes based on 3d metals: from oligomer to 3D framework