Singapore Airlines swings to profit as passenger traffic improves