German court allows patents for AI-generated inventions