Effects of dangling bonds on the recombination function in amorphous semiconductors