Find the volume of the solid S whose base is the triangular region in the x y-plane with vertices (0,0), (1,0), and (0,1) and such that cross-sections perpendicular to the x-axis are squares.