Wavefield compression for seismic imaging via convolutional neural networks