How to Regulate Artificial Intelligence