Discovery of the two-neutrino double-beta decay of xenon-136 with EXO-200