Elasto-Plasticity of Frame Structure Elements: Modeling and Simulation of Rods and Beams