Maximum relative displacement of adjacent buildings during ground motions