What prompted France to fight on the colonist side during the revolutionary war