Additive manufacturing of multifunctional materials