when did the soviet union first gain control of parts of poland and the baltic republics