Self-consistent field theory of twist grain boundaries in block copolymers