Mobility and spectrum management for cognitive radio networks