Energy sector helps lift S&P/TSX composite to triple-digit gains