DelvePO: Direction-Guided Self-Evolving Framework for Flexible Prompt Optimization