Inhomogeneous dynamical mean-field theory of the small polaron problem