Seismic damage identification by fitting the nonlinear and hysteretic dynamic response of monitored buildings