How to define spatially varying materials

See for instance I/O from XDMF/HDF5 files in dolfin-x - #48 by dokken
and
Wrong order of dofs after creating mesh from lists of points and cells - #2 by dokken