Hot-melt mixing of partially miscible active pharmaceutical ingredient-polymer mixtures