Seismic and energy retrofitting of residential buildings: a simulation-based approach