Electron Trapping Times and Trap Densities in Solar Flare Loops Measured with COMPTON and YOHKOH