Asymptotic optimal control of multi-class restless bandits