Analytical solution of flows in porous media for transpiration cooling applications