Black hole formation in core collapse supernovae and time-of-flight measurements of the neutrino masses