Stability Analysis of Natural Convection in Porous Cavities Through Integral Transforms