Text this: State transition probability based sensing duration optimization algorithm in cognitive radio