Multi-material junctions with functionally graded materials