Elastic–plastic response of structural foams subjected to localized static loads