Optimized Design of Partially and Fully-Restrained Steel Frames Using Distributed Plasticity