First-principles Calculations of Elastic and Piezoelectric Constants and Spontaneous Polarization in Cd-IV-N2 Compounds