B&G Foods has reported higher first-half profits as last year's acquisition of a clutch of brands from Unilever continued to benefit the US food group.