Forward algorithm for hidden semi-Markov models with inhomogeneous state durations and/ or conditional transition probabilities