Impact Response of Foam: The Effect of the State of Stress