Sony swings to quarterly loss after quake