Satellites in the Ti~1$s$ core level spectra of SrTiO$_3$ and TiO$_2$