Deformation analysis of foam-encapsulated apples under impact loading