BMW writes code of ethics for AI in collaboration with the EU