Which event primarily contributed to Russia moving from a command economy towards capitalism during the later part of the twentieth century?