Select the appropriate dwithin function for two MobilityDB types.
We need two parameters to cope with mixed 2D/3D arguments