Temperature Distribution in Porous Fins, Subjected to Convection and Radiation, Obtained from the Minimization of a Convex Functional