Seismic residual capacity of reinforced concrete frames