Hybridization methodology based on DP algorithm for hydraulic mobile machinery — Application to a middle size excavator