Two-neutrino double-beta decay to excited one- and two-phonon states