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