Spectral bandits for smooth graph functions