High-temperature superconductivity and charge segregation in a model with strong long-range electron–phonon and Coulomb interactions