Shares of power generation firms rally despite weak market