How did Stalin consolidate his power between 1922 and 1929?