Community Detection by Principal Components Clustering Methods