Optimal design of elastic-plastic structures