NZ Parliament votes to restrict semiautomatic guns