Effects of Impurities on the Competition between Solid Phase Epitaxy and Random Crystallization In Ion-Implanted Silicon