Extracting long-chain fatty acids from a fermentation medium