Resource allocation and optimization techniques in wireless relay networks