Propagation of ultrahigh energy cosmic rays in extragalactic magnetic fields: A view from cosmological simulations