Three-dimensional simulation code for the injector of PNC’s high-power, high-duty electron linac