On the myopic policy for a class of restless bandit problems with applications in dynamic multichannel access