Customizable hierarchical WSN based on GA