Vortex interaction energy in planar josephson junction arrays at high density