UniSim: A Neural Closed-Loop Sensor Simulator