Autoencoders for Compression and Simulation in Particle Physics