Dynamical systems driven by dichotomous noise