The rate of convergence of some asymptotically chi-square distributed statistics by Stein's method