Text this: Bandwidth Allocation of Cognitive Relay Networks with Energy Harvesting for Smart Grid