Text this: Smart grid mechanism for green energy management: a comprehensive review