Copyright in AI-generated works: Lessons from recent developments in patent law