Thomas Mulcair wins final vote to become leader of the NDP