The dependence of exhaust power components on edge gradients in JET-C and JET-ILW H-mode plasmas