The basal speed of valley glaciers: an inverse approach