cake: allow to give source and receiver coordinates instead of distances
cake: fixed a bug causing to crash cake for some geometries