Propagation of Ultra High Energy Cosmic Rays and the Production of Cosmogenic Neutrinos