The elastic–plastic behaviour of foam under shock loading