Mexican food group Gruma is to buy the European arm of US-based peer Azteca Foods for EUR45m.