A result relating convex n-widths to covering numbers with some applications to neural networks