Digital Control and Simulation for Power Electronic Apparatus in Dual Voltage Railway Locomotive