Added a wrapper for compute_distance2electron