John Adams was inspired to return to philadelphia after what battle