Performance improvements

Improved performance of systems that are inhomogeneous along z

The non-bonded kernels got very inefficient with systems that are have a very inhomogeneous atom distribution along the z-dimension. Now all three dimensions are considered when estimating atom density.

Issue 5622