Multidimensional finite-element simulations of the diffusion and trapping of hydrogen in plasma-facing components including thermal expansion