Fix calculation of 3D exterior wall boundary and effective width of 2D linear systems.