Community detection based on modularity and an improved genetic algorithm