The Structure and Defect Formation Energy in Tetragonal PbTiO3: Ab Initio Calculation