Pakistan PM rushes to end energy shortages ahead of 2018 poll