What was a key reason for the American victory at Yorktown?