A general approach to grain growth driven by energy density differences