Domain Structures and Phase Transitions in Barium Titanate