Memory chip stocks rally 3% as semiconductor sector extends gains