Estimating the initial battery power of nodes and the optimal number of clusters to achieve the expected life span of wireless sensor networks