Nonlocal photovoltaic response function for the interpretation of hologram writing in ferroelectric crystals