Concentration Inequalities for Fluctuations in Classical and Quantum Markov Processes