Mesoscopic origin of ferroelectric-ferroelectric transition in BaTiO3: Orthorhombic-to-tetragonal domain evolution