Legal Aspects of Artificial Intelligence in the EU and the US