Text this: 3D printing of functionally graded nanocomposites