Potential difference and energy transfer