Mexico's Gruma remained on track to achieve its long-term targets as the corn flour and tortillas maker posted an increase in second-quarter sales and profits.