Rules for Phase Shifts of Quantum Oscillations in Topological Nodal-Line Semimetals.