Doped amorphous semiconductors