A heterogeneous finite element method in diffusion theory