Electron-beam-based Compton scattering x-ray source for probing high-energy-density physics