Inelastic analysis of framed structures using the fiber approach