Green driving optimization of a series hybrid electric vehicle