Chemical trends in high-Tc ferroelectricity and superconductivity