Semiclassical quantization of the periodic Toda chain