Dungannon Swifts come from a goal behind to book their place in the Samuel Gelston's Irish Cup quarter-finals.