Data-acquisition system for the NRL electron linac