Detection of the oscillation of the Fermi energy of a 2DEG