Tabulated square-shaped source model for linear accelerator electron beam simulation