Linear accelerator for tritium production