Nonlinear noise regression in gravitational-wave detectors with convolutional neural networks