A Flexible Framework For The Damage-Based Modeling of Frame Elements With Applications to Steel Structures