Energy companies restore power in Puerto Rico