On the response of r.c. buildings to near-field ground motions