Text this: Trip-based optimization methodology for a rule-based energy management strategy using a global optimization routine