Numerical simulation of hydrogen desorption from a membrane