Flow and heat transfer in cavities between rotor and stator disks