Estimation of the parameters of a Markov-modulated loss process in insurance