Which battle transformed the american revolution into an international conflict by gaining formal recognition from france, as well as a military alliance?