Bifurcation analysis of attitude dynamics in rigid spacecraft with switching control logics