THERMODYNAMICAL ANALYSIS OF THE EMC EFFECT