The Extended Neyman-Pearson Hypotheses Testing Framework And Its Application To Spectrum Sensing In Cognitive Wireless Communication