Ducks reel club-record six goals in second period, defeat Avalanche 6-4