Influence of pigment and internal stresses on water uptake in model epoxy: a thermodynamic approach