Distributed cooperative mode identification for cognitive radio applications