A Study of Joint Network Coding and Power Control in Energy Harvesting Networks