Optimal hydrothermal design of internal flow pipe with insertion of straight and helical metal foam fins