The importance of the diaphragm on seismic response of buildings