A Covariance Modeling Approach to Adaptive Beamforming and Detection