Atomic-environment-dependent thickness of ferroelastic domain walls near dislocations