The development of novel physical layer security algorithms to mitigate cognitive radio attacks