What is the purpose of a TXV (thermostatic expansion valve) in a refrigeration system?