Metric-Based In-context Learning: A Case Study in Text Simplification