A Markov-modulated jump-diffusion risk model with randomized observation periods and threshold dividend strategy