Resource allocation in wireless systems with conventional and energy harvesting nodes