Energy-based Models are Zero-Shot Planners for Compositional Scene Rearrangement