Foil-excited Rydberg states of fast oxygen ions