Reversibility and entropy production of inhomogeneous Markov chains