Inversion of a glacier hydrology model