Optimal Design of Plastic Structures for Fixed and Shakedown Loadings