A diagnostic framework linking eddy flux ellipse with eddy-mean energy exchange