Staples swings to profit but sales fall