Stability analysis of the generalized fractional differential equations with and without exogenous inputs