Controllable and Compositional Generation with Latent-Space Energy-Based Models