Crystallization and dissolution of pharmaceutical compounds