Energy losses due to elastic wave propagation during an elastic impact