Compound locomotives