Joint scheduling and routing with power control for centralized wireless sensor networks