Computations of properties of twin planes in silver halide