On the conversion between mean and eddy components of potential and kinetic energy in isentropic and isopycnic coordinates