Power based seismic collapse criterion for ductile and non-ductile framed structures