Global patterns and substrate-based mechanisms of the terrestrial nitrogen cycle.