Inverse Approach to Spacecraft Charging Simulations