Theoretical Study of Stress Reversal Phenomena in Drying of Porous Media