Energy-based Criterion for the Selection of the Seismic Input for Inelastic Dynamic Analyses