New Zealand opposition lawmaker quits after allegedly sending sexually explicit image