Distributed power allocation for cognitive radio