Devices for heating or cooling internal body cavities