On the Hilbert function of one-dimensional local complete intersections