EU proposes rules for artificial intelligence to limit risks