Text this: Spectrum allocation algorithm based on multi-agent reinforcement learning in smart grid