The European Union (EU) and Mexico have agreed on an upgrade to their 15-year-old free trade deal.