Strategies for improving the quality of community detection based on modularity optimization