Cybercriminals implanted iPhones with spyware by exploiting a hole in Apple’s operating system