Drivetrain for hybrid/electric trucks, construction and agricultural vehicles