What Makes Good Examples for Visual In-Context Learning?