What is the primary function of a nephrostomy tube left in place after percutaneous nephrolithotomy (PCNL)?