Real-time ray-tracing for underwater distance evaluation with application to distributed localization of AUV teams