Change in the Electronic Structure of the Cobalt(II) Ion in a One-Dimensional Polymer with Flexible Linkers Induced by a Structural Phase Transition