Theory of tetragonal twin structures in ferroelectric perovskites with a first-order phase transition | Synapse