Assembly of alternating spin-chains with magnetically anisotropic cobalt(II) dimers