Ti- and Sr-rich surfaces of SrTiO3 studied by grazing incidence x-ray diffraction