Guiding In-Context Learning of LLMs through Quality Estimation for Machine Translation