Effect of inelastic scattering on the average Coulomb-blockade peak height in quantum dots