Optimisation of energy flow management in hybrid electric vehicles via genetic algorithms