The neutrino signal from protoneutron star accretion and black hole formation