Complete intersections and Gorenstein rings