Variable Rate Neural Compression for Sparse Detector Data