Modeling and control of a hybrid electric drivetrain for optimum fuel economy, performance and driveability