Comparison of impurity defect structures formed by ion implantations in amorphous and crystalline silicon