Similar Items: MASPO: Joint Prompt Optimization for LLM-based Multi-Agent Systems