Modeling and simulation of all-electric propulsion system with three-closed loop control