First and second laws of thermodynamics analysis of nanofluid flow inside a heat exchanger duct with wavy walls and a porous insert