A frequency-domain spectral-balance quasi-two-dimensional approach for the simulation of nonlinear devices and circuits