Thermal and petrologic structure of subduction zones