How does the immune system distinguish self from nonself?