Option pricing under regime-switching jump-diffusion models