S&P/TSX composite rebounds from four-day skid as energy climbs on higher crude prices