Impact of the environment and the topology on the performance of hierarchical body area networks