Reactions of atomic hydrogen in the deposition of hydrogenated amorphous silicon by glow discharge and reactive sputtering