Apple loses iCloud patent battle