Surface relaxation, surface reconstruction and surface dynamics close to the antiferrodistortive phase transition of SrTiO3(001) slabs with free SrO and TiO2 surfaces