3D printing of transition metal dichalcogenides