Ti 2p and Ti 3p X-ray photoelectron spectra for TiO2, SrTiO3 and BaTiO3