n-Widths of function spaces