Residual mean first-passage time for jump processes: theory and applications to Lévy flights and fractional Brownian motion