Regulation of artificial intelligence in the European Union