Ergodic Hidden Markov Models for Workload Characterization Problems