LG Energy Solution swings to profit in Q3 on strong EV battery demand