3D printing of pharmaceuticals