Staples’ Q2 profit surges 40%