Electricity gradually returns to Cuba after substation failure left millions in the dark