Seismic response of precast and IBS buildings under earthquake attacks