Pulse propagation and nonlinear harmonic generation in free electron laser oscillators