Depth Selection for Deep ReLU Nets in Feature Extraction and Generalization