Electrification of a class 8 heavy-duty truck considering battery pack sizing and cargo capacity