New Zealand intelligence agency illegally spied on Megaupload