Development of Neural-Network Based Control Algorithm for Train Adaptive and Smooth Braking System