Spontaneous Polarization Calculations in Wurtzite II-Oxides, III-Nitrides, and SiC Polytypes through Net Dipole Moments and the Effects of Nanoscale Layering