Joint Linear and Nonlinear Computation with Data Encryption for Efficient Privacy-Preserving Deep Learning