Theoretical Analysis of Capillary Rise in Porous Media