Optimal Rate Allocation in Cluster-Tree WSNs