Lattice energies and structural distortions in Pb(ZrxTi1-x)O3 solid solutions