Computation of the hydrodynamic coefficients of oscillating cylinders