Resource allocation and performance analysis for wireless communication systems with radio frequency energy harvesting