stateprobs_g function

Calculate conditional local state probabilities for inhomogeneous HMMs