Integrable boundary-value problems and nonlinear Fourier harmonics