The Reasonable Robot: Artificial Intelligence and the Law