On jump-diffusion processes with regime switching: martingale approach