Apatite weathering and the Phanerozoic phosphorus cycle