Optimising fuel cell hybrid train operation: a convex optimisation approach