Multi-material 3D inkjet printing for functional structures