Micromechanical analysis of porous SMA