Cognitive antennas architecture for distributed sensor networks