The Analysis on Network Communities Structure based on Markov Chain and Large-deviation Theory