After Lenin assumed control of Russia he quickly signed a treaty with what nation?