Hybrid locomotives