The Electromagnetic and Thermal Analysis of an Air-Core Pulsed Alternator Driving the Railgun