Neural Configuration Distance Function for Continuum Robot Control