Oxygen-vacancy defects in PbTiO3 and BaTiO3 crystals: