Locomotives or motor railcars characterised by their application to special systems or purposes