input and output dolfin function instead of the actual array in function interpolate_to_mesh