Simultaneous attainment of high electron and ion temperatures in discharges with internal transport barriers in ASDEX upgrade