Resonance libration and width at arbitrary inclination