FESTIM should be able to support different types of diffusivities and accept fem.Functions if given rather than just as floats or D_0 and E_D. Guess this could link in with #742