Manufacture of railway locomotives and rolling stock