Generalized crested products of Markov chains