Planning and design of refractory linings