Effect of Defects on Spontaneous Polarization in Pure and Doped LiNbO3: First-Principles Calculations