American captain freed from Somali pirates