Effective properties of porous ideally plastic or viscoplastic materials containing rigid particles