Electromodulation spectroscopy of confined systems