Asymptotic convergence of weighted random matrices: nonparametric cointegration analysis for I(2) processes