What treaty resulted in the recognition of the RSFSR by Latvia and other states?