Customizable hierarchical wireless sensor networks based on genetic algorithm