Static and dynamic characteristics of post-buckling of porous functionally graded pipes under thermal shock