Spin-lattice coupling in strongly correlated cobalt oxides investigated by synchrotron and neutron techniques