On flow switching bifurcations in discontinuous dynamical systems