Sensitivity Analysis on Regime-Switching Models by Wiener-Malliavin Calculus