Quasiparticle interaction function in a two-dimensional Fermi liquid near an antiferromagnetic critical point