International investment agreements and EU law