Parameter measurement and optimization for a 3/6 dual-energy electron linear accelerator with industrial and inspection applications