LG Display swings to a loss as inflation puts brakes on pandemic-led demand