Optimization of cooling of gas turbine blades with channels filled with porous material