Plastic analysis of spatial frame structures