A cube has a volume of 8 cubic centimeters. A square has the same value for its area as the value for the surface area of the cube. How long is each side of the square?