Pakistan beat West Indies in third ODI to clinch series 2-1