Brazilian food group BRF has said it is reaping the rewards of a focus on more profitable products and markets after reporting an increase in half-year earnings.