Mechanical behavior of porous functionally graded nanocomposite materials