Instanton contributions to Wilson loops with general winding number in two dimensions and the spectral density