Trapezoid ABCD has bases \overline{AB} and \overline{CD}. Line segment $\overline{EF},$ which is parallel to the bases, divides trapezoid ABCD into two trapezoids of equal area. Find the length $EF.$