Analysis of fatty acid anhydrides and polyanhydrides