Text this: Existence and stability analysis of ferroresonance using the generalized state-space averaging technique