A short-pulse hard x-ray source with compact electron linac via laser-Compton scattering for medical and industrial radiography