Analysis of the TiO isotopologues in stellar optical spectra