Turkish minister warns EU over post-Brexit UK role