Planck constant as spectral parameter in integrable systems and KZB equations