Training-Free Generation of Diverse and High-Fidelity Images via Prompt Semantic Space Optimization