Resonance families and their action on betatron motion