The $n$-width of sets of analytic functions