Learning Disentangled Prompts for Compositional Image Synthesis