Adiabatic theory of the polaron spectral function