Generalized compressive detection of stochastic signals using Neyman-Pearson theorem