Mechanistic aspects in the self assembly of coordination polymers based on rigidity and flexibility of the linkers synthesis structural characterization and magnetic properties