Berry phase in quantum oscillations of topological materials