Atomic-Environment-Dependent Thickness of Ferroelastic Domain Walls