A theoretical study of the electronic structure for twin stacking faults in silicon