S-band linac-based X-ray source with π/2-mode electron linac