Ireland secured a two-wicket win in the third ODI as they defeated West Indies 2-1 in the three-match ODI series.