who implemented an economic embargo in 1807 in an effort to avoid war