Indonesian president offers 'deep sorrow' to families of sunken submarine