An Adaptive Spectrum Detection Mechanism for Cognitive Radio Networks in Dynamic Traffic Environments