Simulating the response of structures to impulse loadings