VPO: Aligning Text-to-Video Generation Models with Prompt Optimization