Consistency of nearest neighbor classification under selective sampling