Compact hard X-ray split-and-delay line for studying ultrafast dynamics at free-electron laser sources1