Gravar-mail: Local atomic geometry and Ti 1s near-edge spectra in PbTiO(3) and SrTiO(3)