Optical-field-dependent electron-electron scattering effects and gain generation in the intersubband transitions of n-doped quantum wells