Mechanism of feature learning in convolutional neural networks