Numerical simulation of quasi-static compression on a complex rubber foam