Stellar subdivisions and Stanley-Reisner rings of Gorenstein complexes