Energy sources used to electrify the powertrain