Stochastic extended Krylov subspace method for variational analysis of on-chip power grid networks