Comparison of two-dimensional binned data distributions using the energy test