Systematic Prompt Refinement for LLMs