Text this: Design of optimal rule-based controller for plug-in series hybrid electric vehicle