Pounding response of buildings under earthquake motions