Determination of ester substituents in cellulose esters