SMDP-Based Resource Allocation for Wireless Networks with Energy Harvesting Constraints