Insight into the energy consumption, CO2 emissions and NOx emissions of rail freight transport