First-principles study on the geometric and electronic structures and phase transition of PbZr1?xTixO3 solid solutions