Stationkeeping on unstable orbits: Generalization to the elliptic restricted three-body problem