Let \(R\) be the region in the first quadrant bounded below by the graph of \(y=x^2\) and above by the graph of \(y=\sqrt{x}\). \(R\) is the base of a solid whose cross sections perpendicular to the \(x\)-axis are squares. What is the volume of the solid?