Mechanical analysis and modeling of porous thermal barrier coatings