OMNeT++ model for cognitive radio simulations