Quality of Protection in Cloud-Assisted Cognitive Machine-to-Machine Communications for Industrial Systems