fixed bug in mesh.get_joyner_boore_distance - now the algorithm works also when 2D Mesh objects are passed