A novel criterion for overlapping communities detection and clustering improvement