Stochastic geometric analysis of cognitive wireless networks