Euclid preparation: X. The Euclid photometric-redshift challenge