Observable augmented systems for sensitivity analysis of Markov and semi-Markov processes