Polarons in high-temperature superconductors