Deep Contrastive Principal Component Analysis Adaptive to Nonlinear Data