Harmonic generation in the free-electron laser. II. cw calculation for the linearly polarized wiggler