A line and a circle intersect at A and B, as shown below. Find the coordinates of the midpoint of AB. The circle is x^2 + y^2 = 1, and the line is x + y = sqrt(2).