The world's first AI inventor has been rejected by British and European patent authorities