Ion implantation in amorphous germanium and silicon