Analysis of a GLRT for the detection of an extended target