Electron Bremsstrahlung Hard X-Ray Spectra, Electron Distributions, and Energetics in the 2002 July 23 Solar Flare