Uni4DPC: A unified 4D sparse tensor network for intra- and inter-frame dynamic point cloud geometry compression