Text this: Application of Regenerative Braking with Optimized Speed Profiles for Sustainable Train Operation