3D-Printed functionally graded thermoelectric materials for enhanced power generation