Principles of localized buckling for a strut on an elastoplastic foundation