A compact 5 MeV S-band electron linac based X-ray source for industrial radiography