Cosmogenic neutrinos and gamma-rays and the redshift evolution of UHECR sources