Reducing fuel consumption and related emissions through optimal sizing of energy storage systems for diesel-electric trains