Politicians have called for former coalfields to be turned into green energy hubs to reverse the damage of the pit closures.