Polaron theory of high-Tc superconductors