Distance-Aware Precoding for Near-Field Capacity Improvement in XL-MIMO