A localized and distributed channel assignment framework for cognitive radio networks