Slow Feature Analysis on Markov Chains from Goal-Directed Behavior