Localization through surface folding in solid foams under compression.