Coupling of magnetospheric cavity modes to field line resonances: A study of resonance widths