Cognitive radar and its application to CFAR detection and receiver adaptation