State and group dynamics of world stock market by principal component analysis