Finite element analysis of diffusion processes in white dwarfs