Twist grain boundary and frustrated liquid crystal phases