Influence of Impurities on the Solution-Mediated Phase Transformation of an Active Pharmaceutical Ingredient