A stochastic volatility model with leverage effect and regime switching