Design and optimization of an on-chip electrostatic injector for a miniaturized proton/ion linear accelerator | Synapse