In a refrigeration cycle, the flow of refrigerant is controlled by