Excited states from eigenvector continuation: The anharmonic oscillator