Dynamics of deuterium retention and desorption from plasma-facing materials in fusion reactor-relevant conditions