New Zealand votes to legalise euthanasia