Simulation and testing of a lateral, microfabricated electron-impact ion source