Mechanical behaviour of buildings under seismic input in near-fault areas