North Dakota lawmaker quits after texts with child porn suspect are exposed