Bulk properties and electronic structure of SrTiO3, BaTiO3, PbTiO3