Numerical simulation of hydrogen desorption from thin metallic films