Re-use gmx_within_tol from math/utilities instead of is_equal

Change-Id: I097bc4901c2f0123cdcb101c9d2f75f1485fb771