Right-hander Mason Thompson, coming off Tommy John surgery, agrees to 1-year deal with Nationals