The Prompt Alchemist: Automated LLM-Tailored Prompt Optimization for Test Case Generation