Precision crystallization, spherical agglomeration and formulation of pharmaceuticals