the main reason that France signed the formal alliance with the colonies during the American Revolution was​