Structural and electronic properties of PbTiO3, PbZrO3, and PbZr0.5Ti0.5O3: First-principles density-functional studies