US food company J & J Snack Foods has reported an 11% rise in second-quarter net earnings, boosted by higher sales.