PUG: Photorealistic and Semantically Controllable Synthetic Data for Representation Learning