A square is inscribed in a circle such that each corner touches the circle. Find a function that gives the area of the square as a function of the radius of the circle.