Philips swings back to profit