Electrifying heavy-duty trucks and buses