On the Gittins Index for Multiarmed Bandits