Active Learning Principles for In-Context Learning with Large Language Models