Exact Values of N-Widths and Optimal Quadratures on Classes of Bounded Analytic and Harmonic Functions