Modeling and Simulation of Ship Power System