Large deviations analysis of adaptive distributed detection