The influence of external fields on the energy of two interacting electrons in a quantum dot