Design of an electron-accelerator-driven compact neutron source for non-destructive assay