The characterization of equilibrium potentials and last exit distributions for elliptic diffusion processes