Text this: Implementation of a multilayer statistical physics model to interpret the adsorption of food dyes on a chitosan film