Auto giant Stellantis on Thursday swung to profit in the second quarter, boosted by rising demand in North America.