Characterization of ion heat conduction in JET and ASDEX Upgrade plasmas with and without internal transport barriers