Mechanical behavior of sandwich composite beams made of foams and functionally graded materials