COLLISIONAL RELAXATION OF ELECTRONS IN A WARM PLASMA AND ACCELERATED NONTHERMAL ELECTRON SPECTRA IN SOLAR FLARES