Elasto-plastic analysis of block structures through a homogenization method