Simulation and Optimization of Nanowire-Based Betavoltaic Generators