Learning with convolution and pooling operations in kernel methods