A mesomechanical analysis of the deformation and fracture in polycrystalline materials with ceramic porous coatings