Integration of some chains of nonlinear difference equations by the method of the inverse spectral problem