Performance analysis of energy harvesting relaying