Ultrahigh energy neutrinos from high-redshift electromagnetic cascades