AI regulation: harnessing the benefits and mitigating the risks