Spline‐based nonparametric inference in general state‐switching models. (22nd April 2018)