who was a french aristocrat and military officer who served as a general in the continental army