Computation of inductances for pulsed power generators using a semianalytic method