Doping, Schottky barrier and pn junction formation in amorphous germanium and silicon by rf sputtering