Field-induced slow magnetic relaxation of two 1-D compounds containing six-coordinated cobalt(II) ions: influence of the coordination geometry