A metric on directed graphs and Markov chains based on hitting probabilities