Analysis of time-inhomogeneity in Markov chains applied to mother-infant interactions of rhesus monkeys