An improved homogenization technique for pin-by-pin diffusion calculations